package client

type Options struct {
	TimeoutMs      uint64
	ListenInterval uint64
	BeatInterval   int64
	Address        string
	Port           uint64
}

func deafultOptions() *Options {
	return &Options{
		TimeoutMs:      10*1000,
		ListenInterval: 3*1000,
		BeatInterval:   1*1000,
	}
}

func (option *Options) WithAdress(address string) *Options {
	option.Address = address
	return option
}

func (option *Options) WithPort(port uint64) *Options {
	option.Port = port
	return option
}

func NewOption() *Options {
	return deafultOptions()
}
